<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
{{assign var="title" value='采集规则'}}
{{assign var="app" value='listing'}}
{{assign var="table" value='datas'}}
{{assign var="act" value='modify'}}
<title>{{$title}} - {{'admin|admin_site_name'|C|default:'后台管理'}}</title>
{{include file="include/base.html"}}
{{include file="{{$smarty.const.PLUG}}chosen/chosen.html"}}
{{include file="{{$smarty.const.PLUG}}drag/drag.html"}}
{{include file="{{$smarty.const.PLUG}}verify/verify.html"}}
</head>

<body>

	{{include file="include/sidebar.html"}}

	<div class="body_right">
	<div id="content">
	<div class="search">
	  <ul class="bread">
		<li>◆ {{$title}}管理 －> {{$result.title|default:'添加'}}</li>
	  </ul>
	</div>
			
		<!--内容 S-->
		<form action="index.php?app={{$app}}&act=save" name="form" class="verify" method="post">
		<input type="hidden" name="id" value="{{$result.id}}"/>
		<input type="hidden" name="item" value="{{$item}}"/>
		<table class="table table-bordered tablest modify">
			<tbody>
			<tr>
			  <td>网站名称：</td>
			  <td>
				<input class="input-xlarge" type="text" name="title" maxlength="50" value="{{$result.title}}"> <span class="red">*</span>
			  </td>
			</tr>
			<tr>
			  <td>网址：</td>
			  <td>
				<input class="input-xlarge" type="text" name="params[url]" value="{{$result.params.url}}"> 
				<span class="notice">主域名，如:http://www.baidu.com</span>
			  </td>
			</tr>
			<tr>
			  <td>编码：</td>
			  <td>
				<label class="radio inline">UTF-8<input type="radio" name="params[charset]" {{if $result.params.charset!='gb2312'}}checked{{/if}} value="utf8"></label>
				<label class="radio inline">GB2312/GBK<input type="radio" name="params[charset]" {{if $result.params.charset=='gb2312'}}checked{{/if}} value="gb2312"></label>
			  </td>
			</tr>
			<tr>
			  <td>采集规则：</td>
			  <td>
				<textarea name="params[rule]" placeholder="{@body}">{{$result.params.rule}}</textarea>
				<span class="notice">仅针对文章内容，格式：前面HTML{@body}后面HMTL</span>
			  </td>
			</tr>
			
		  </tbody>
		</table>
		<div class="bottom_button">
			<button type="submit" class="btn btn-info"><i class="icon-ok icon-white"></i>确认</button>
		</div>
		</form>
		<!--内容 E-->
</div>
</div>
{{include file="{{$smarty.const.PLUG}}ueditor/ueditor.html"}}
</body>
</html>